
#ifndef _ADDR_CHECK_H_
#define _ADDR_CHECK_H_


struct addr_node_t
{
	unsigned long addr_start;
	unsigned long addr_end;
	unsigned short port_start;
	unsigned short port_end;
	int flag;
	struct addr_node_t *next;
};

struct addr_list_t
{
	struct addr_node_t *head;
	struct addr_node_t *tail;
	unsigned int num;
};

void init_addr_list(struct addr_list_t *list);
void clear_addr_list(struct addr_list_t *list);
int add_addr_list(struct addr_list_t *list, unsigned long addr_start, unsigned long addr_end, unsigned short port_start, unsigned short port_end, int flag);
struct addr_node_t *find_addr_list(struct addr_list_t *list, unsigned long addr, unsigned short port);
int print_addr_list(struct addr_list_t *list);


#endif


